package com.opensource.component.demo;

import com.opensource.component.ift.StatementController;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ZonLen since on 2022/5/30 下午8:44
 */
@RestController
public class DeclareReportController implements
    StatementController<DeclareReportStatementRequest, DeclareReportStatementResponse> {

  @Override
  @PostMapping(value = "/fetch/data")
  public DeclareReportStatementResponse fetchData(@Validated @RequestBody DeclareReportStatementRequest request) {
    return new DeclareReportStatementResponse();
  }

  @Override
  public String code() {
    return "aaa";
  }

}
